package com.ibiaoke.order.service;

import com.ibiaoke.goods.entity.Goods;
import com.ibiaoke.order.entity.GoodsRush;
import com.ibiaoke.order.entity.vo.GoodsRushVO;

import java.util.List;

public interface GoodsRushService {

    List<GoodsRush> listRush();

    List<GoodsRush> listValidRush(Integer goodsId);

    void validateCount(Goods goods, int amount, Integer userId, boolean reduceCount);

    void validateCount2(Goods goods, int amount, Integer userId, boolean reduceCount);

    int saveGoodsRush(GoodsRushVO goodsRushVO);

    int updateGoodsRush(GoodsRushVO goodsRushVO);

    int deleteGoodsRush(Integer rushId);

    List<GoodsRush> listALLRush(Integer goodsId);
}
